package it.avantsoft.ls.peer.command;

import it.avantsoft.ls.peer.PeerHandler;

public class DeadBrotherABCommand extends PeerCommand {

    private String peerId;

    public DeadBrotherABCommand(PeerHandler peerHandler, String id) {
        super(peerHandler);
        peerId = id;
    }

    public void execute() {
        getPeer().deadBrother(peerId);
        getPeer().signalDeadUncle(peerId);
    }

    public String toString() {
        return "DeadBrotherABCommand{" +
                "peerId='" + peerId + '\'' +
                '}';
    }
}
